package designmodel.oberver;

public class ObserverTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ObservableDemo observable = new ObservableDemo();
		Observer observer1 = new ObserverDemo();
		Observer observer2 = new ObserverDemo();
		Observer observer3 = new ObserverDemo();
		observable.addObserver(observer1);
		observable.addObserver(observer2);
		observable.addObserver(observer3);
		observable.setName("name");
		observable.removeObserver(observer2);
		observable.setAge(10);

	}

}
